package com.study.component;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.alibaba.fastjson.support.config.FastJsonConfig;
import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.List;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.MediaType;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.http.converter.StringHttpMessageConverter;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Author tanglingyu
 * @Date: 2021/08/12/ 13:49
 * @Description
 */
@Configuration
public class Mvc4 implements WebMvcConfigurer {

  /**
   * 配置为fastJson
   */
  @Override
  public void configureMessageConverters(List<HttpMessageConverter<?>> converters) {
    System.out.println("4");
  }
}
